MailPoet\API\JSON\API A

Total Complexity 55
Dependencies 19
Dependents 7
Total lines 292
Lines of code 208
Logical lines of code 90
Comment lines 20
Methods 14
Properties 15

Methods 14

Method Rating Maintainability Complexity Lines of code
setRequestData()
B
42 19 48
processRoute()
A
44 13 43
setupAjax()
S
52 7 22
createErrorResponse()
S
56 2 20
__construct()
S
60 2 14
logError()
S
62 2 11
init()
S
59 1 18
validatePermissions()
S
72 2 5
addEndpointNamespace()
S
74 2 4
setTokenAndAPIVersion()
S
65 1 10
addTokenToHeartbeatResponse()
S
76 1 4
getEndpointNamespaces()
S
82 1 3
getRequestedEndpointClass()
S
82 1 3
getRequestedAPIVersion()
S
82 1 3